package oops;

public class InstanceVarInitializers {
	
	// Method 1: Initializer Block
	public int i = -11;
	{
		i = +11;
	}
	
	// Method 2: final methods
	public int j = updateJ(21); 
	private final int updateJ(int newJ) {
		return newJ;
	}

	public static void main(String[] args) {
		InstanceVarInitializers ivi = new InstanceVarInitializers();
		System.out.println("i: " + ivi.i);
		System.out.println("j: " + ivi.j);
	}

}
